//
//	  Node.java
//
//	  Copyright (c) 2011 <John Lawniczak>
//	  jlawniczak340license@gmail.com
//
//    This file is part of CS102_Assignment2.
//
//    CS102_Assignment2 is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, version 3 of the License.
//
//    CS102_Assignment2 is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with CS102_Assignment2.  If not, see <http://www.gnu.org/licenses/>.
//
/**************************************************
Class Name:Node
Author's Name:John Lawniczak
Date:05-05-2010
Description of the class: a single node of a linked 
	list containing a generic type element
***************************************/

public class Node<t>{

	private Node<t> next;  
	private t element;	

	public Node(t elem){
		element = elem;
		next = null;
	}
	
	public void setNext(Node<t> nxt){
		next = nxt;
	}
	
	public void setElement(t elem){
		element = elem;
	}
	
	public t getElement(){
		return element;
	}
	
	public Node<t> getNext(){
		return next;
	}
}
